package com.tanhua.api.mongo;

import com.tanhua.domain.mogo.Publish;
import com.tanhua.domain.vo.PageBeanVo;

public interface PublishApi {
    String save(Publish publish);

    PageBeanVo findAlbumByPage(Integer page, Integer pagesize, Long userId);

    PageBeanVo findTimeLineByPage(Integer page, Integer pagesize, Long userId);

    PageBeanVo findRecommendByPage(Integer page, Integer pagesize, Long userid);

    Publish findById(String publishId);
    //后台管理系统查找用户发布数据
    PageBeanVo findUserPublish(Integer page, Integer pagesize, Long uid, Integer state);

    Publish findByIdtoPublish(String publishId);

    void updateState(String publishId, Integer state);
}
